/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.tb_discharge_cargo_address.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.tb_discharge_cargo_address.entity.TbDischargeCargoAddress;
import com.thinkgem.jeesite.modules.tb_discharge_cargo_address.dao.TbDischargeCargoAddressDao;

/**
 * 卸货地址管理Service
 * @author ZhangYangZe
 * @version 2017-05-13
 */
@Service
@Transactional(readOnly = true)
public class TbDischargeCargoAddressService extends CrudService<TbDischargeCargoAddressDao, TbDischargeCargoAddress> {
	public TbDischargeCargoAddress get(String id) {
		return super.get(id);
	}
	/**
	 * 查询列表数据
	 * @param TbDischargeCargoAddress
	 * @return List<TbDischargeCargoAddress>
	 */
	public List<TbDischargeCargoAddress> findList(TbDischargeCargoAddress tbDischargeCargoAddress) {
		return super.findList(tbDischargeCargoAddress);
	}
	/**
	 * 查询分页数据
	 * @param TbDischargeCargoAddress
	 * @param Page<TbDischargeCargoAddress>
	 * @return Page<TbDischargeCargoAddress>
	 */ 
	public Page<TbDischargeCargoAddress> findPage(Page<TbDischargeCargoAddress> page, TbDischargeCargoAddress tbDischargeCargoAddress) {
		return super.findPage(page, tbDischargeCargoAddress);
	}
	/**
	 * 保存数据（插入或更新）
	 * @param TbDischargeCargoAddress
	 */
	@Transactional(readOnly = false)
	public void save(TbDischargeCargoAddress tbDischargeCargoAddress) {
		super.save(tbDischargeCargoAddress);
	}
	/**
	 * 删除数据
	 * @param TbDischargeCargoAddress
	 */
	@Transactional(readOnly = false)
	public void delete(TbDischargeCargoAddress tbDischargeCargoAddress) {
		super.delete(tbDischargeCargoAddress);
	}
	/**
	 * 查询列表数据的详情
	 * @param TbDischargeCargoAddress
	 * @return ArrayList<TbDischargeCargoAddress>
	 */
	public ArrayList<TbDischargeCargoAddress> addressDetails(String id){
		return dao.addressDetails(id);
	}
}